<?php
        global $Room;
        $id=$data2['room'];
        if($Room[$id]['time5']==0){
            cleardjs($Room[$id]['djs'],$id);
            return false;
        }
        cleardjs($Room[$id]['djs'],$id);


        $Room[$id]['time5']=0;
        $Room[$id]['xx']['zt']=5;

        
        $bank=array();
        $user=array();


        foreach ($Room[$id]['user'] as $connection3) {
                if($connection3->user['beishu']=='-1' && $connection3->user['zt']=='1' && $Room[$id]['bank']['id']!=$connection3->user['id']){
                     $Room[$id]['user'][$connection3->user['id']]->user['beishu']='1';

                    $img='/app/img/X-1.png';
                    $mp3='xia1';
                    $msg=array();
                    $msg['index']=$connection3->user['index'];
                    $msg['img']=$img;
                    foreach ($Room[$id]['user'] as $connection4) {
                        if($connection4->user['online']!='-1'){
                        act('mp3play',$mp3,$connection4);
                        act('showmemberTimesText',$msg,$connection4);
                        }
                    }
                }
        }


        $time_interval = 1;
        $Room[$id]['time6']=time()+$time_interval;
        djs($time_interval,'initfanpai',$id);

